/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.saga.lib.asyncserver;

import java.nio.channels.AsynchronousByteChannel;

/**
 *
 * @author summers
 */
public interface ConnectionStateFactory {
    
    abstract <T extends ConnectionState> T get(Class<T> defaultClazz, AsynchronousByteChannel channel);
    
    abstract void checkin(ConnectionState state);
    
}
